package com.ls.fw.data.hbase.bean;

import java.util.HashMap;

public class Record extends HashMap<String, RecordFamily>{

	private static final long serialVersionUID = 1L;
	
	private String id;

	public Record(String id) {
		super();
		this.id = id;
	}

	public String getId() {
		return id;
	}
	
	public Record add(String name, RecordFamily value){
		this.put(name, value);
		return this;
	}
	public Record add(RecordFamily value){
		this.put(value.getFamily(), value);
		return this;
	}

	public void setId(String id) {
		this.id = id;
	}
	
}
